package com.hospital.util;

import com.hospital.entity.User;
import com.hospital.vo.R;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

/**
 * @author fxy
 * @date 2022/9/1
 */
@Component
public class SessionUtil {
    public static User getSeesion(HttpServletRequest request){
        User user = (User) request.getSession().getAttribute("user");
        return user;
    }
}
